package model.events;

import javax.naming.OperationNotSupportedException;

import model.EMedium;
//import model.rentals.Rental;
//import model.shelves.Shelf;

/**
 * Classe RentalAddedEvent - evento que adiciona um Rental
 * @author DCO37
 * 	N.º 42484 Helder Ferreira
 *  N.º 45509 Luis Ferreira
 */
public class RentalAddedEvent extends RentalCollectionEvent{

	//Shelf shelf; 
	
	@Override
	/*
	 * (non-Javadoc)
	 * @see model.events.RentalCollectionEvent#getEMedium()
	 */
	public EMedium getEMedium() {
		return super.getEMedium();
	}
	
	/**
	 * Evento Adiciona um Rental
	 */
//	public RentalAddedEvent(){
//		try {
//			shelf.addRental((Rental)getEMedium());
//		} catch (OperationNotSupportedException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//	}

}
